package com.mark.beetl.dao;

import com.mark.beetl.entity.User;
import org.beetl.sql.core.*;
import org.beetl.sql.core.annotatoin.Param;
import org.beetl.sql.core.db.DBStyle;
import org.beetl.sql.core.db.KeyHolder;
import org.beetl.sql.core.db.MySqlStyle;
import org.beetl.sql.core.mapper.BaseMapper;
import org.beetl.sql.ext.DebugInterceptor;

import javax.sql.DataSource;
import java.util.List;

/**
 * user数据库操作层
 *
 * @author maliqiang
 * @version 1.0
 * @create 2017-03-27
 */
public interface UserDao  extends BaseMapper<User>  {
    void insert(User user);

    KeyHolder insertReturnKey(User user);

    int deleteById(Object o);

    List<User> queryAll();

    long allCount();

    List<User> execute(String s, Object... objects);

    User queryById(@Param("id") Integer id);


}
